#define _CRT_SECURE_NO_WARNINGS
#include"list.h"
namespace sj
{
	void test1()
	{
		list<int> lt1{ 1,2,3,4,5 };
		for (auto e : lt1)
		{
			cout << e << " ";
		}
		list<int> lt2(lt1);
		cout << endl;
		for (auto e : lt2)
		{
			cout << e << " ";
		}
		lt2.insert(lt2.begin(), 6);
		cout << endl;
		for (auto e : lt2)
		{
			cout << e << " ";
		}
		lt2.push_back(6);
		cout << endl;
		for (auto e : lt2)
		{
			cout << e << " ";
		}
		lt2.erase(--lt2.end());
		cout << endl;
		for (auto e : lt2)
		{
			cout << e << " ";
		}
	}

}


int main()
{
	sj::test1();
	return 0;
}